package com.songlanyun.modules.shop.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.songlanyun.common.drive.RootEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 联盟商家分类关系表
 *
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2020-11-04 16:06:34
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("yxt_union_business_relation")
public class UnionBusinessRelationEntity extends RootEntity<Long, UnionBusinessRelationEntity> implements Serializable {
    private static final long serialVersionUID = 1L;

    public UnionBusinessRelationEntity() {
    }

    public UnionBusinessRelationEntity(Long shopId, Long classifyId) {
        this.shopId = shopId;
        this.classifyId = classifyId;
    }

    /**
     *
     */
    @TableId
    private Long id;
    /**
     * 商家id
     */
    private Long shopId;
    /**
     * 分类ID
     */
    private Long classifyId;

    @Override
    public Long getIdentity() {
        return id;
    }

}
